package com.liuhaoqi.raletiveblog.mapper;

import com.liuhaoqi.raletiveblog.entity.Memory;
import com.liuhaoqi.raletiveblog.result.business.PageResult.TimelinePageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemoryMapper {
    int updateMemoryByMemoryId(Memory memory);
    int deleteMemoryByMemoryId(int memoryId);
    List<TimelinePageResult> getMemmoryListMang(@Param("start") int start,@Param("end") int end,@Param("pagesize") int pagesize);
    List<Memory> getMemoryList();
    int deleteByPrimaryKey(Integer memoryid);

    int insert(Memory record);

    int insertSelective(Memory record);

    Memory selectByPrimaryKey(Integer memoryid);

    int updateByPrimaryKeySelective(Memory record);

    int updateByPrimaryKeyWithBLOBs(Memory record);

    int updateByPrimaryKey(Memory record);
}